package code.tools.log
{
	/**
	 * @author wenqiang.deng
	 */
	public class LogLevel
	{
		public static var TRACE : LogLevel = new LogLevel(0, 'TRACE');
		public static var DEBUG : LogLevel = new LogLevel(1, 'DEBUG');
		public static var INFO : LogLevel = new LogLevel(2, 'INFO');
		public static const WARN : LogLevel = new LogLevel(3, 'WARN');
		public static var ERROR : LogLevel = new LogLevel(4, 'ERROR');
		public static const FATAL : LogLevel = new LogLevel(5, 'FATAL');
		private var _value : int;
		private var _name : String;
		private var _color : uint;

		public function LogLevel(value : int, name : String, color : uint = 0)
		{
			_value = value;
			_name = name;
			_color = color;
		}

		public function get name() : String
		{
			return _name;
		}

		public function get color() : uint
		{
			return _color;
		}

		public function get value() : int
		{
			return _value;
		}
	}
}
